<template>
  <div class="error-message">
    <slot>发生错误</slot>
  </div>
</template>
<script setup>
</script>
<style scoped>
.error-message { color: #d32f2f; padding: 1rem; background: #fff0f0; border-radius: 4px; }
</style> 